home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / HippoDraw / HippoDrawSrc1.1 / Hippo.subproj / InspectBase.h < prev    next >
Encoding:
Text File  |  1992-04-25  |  2.0 KB  |  74 lines

  1. /* InspectBase.h        by Paul Kunz    December 1991
  2.  * Base class for tuple and plot inspectors.
  3.  * 
  4.  * $Id: InspectBase.h,v 1.7 1992/04/23 04:14:30 pfkeb Rel $
  5.  *
  6.  * Copyright (C)  1991  The Board of Trustees of
  7.  * The Leland Stanford Junior University.  All Rights Reserved.
  8.  */
  9.  
  10. #import <objc/Object.h>
  11. #import "hippo.h"
  12.  
  13. @interface InspectBase:Object
  14. {
  15.     id     contentBox;    /* Box containing Inspector's contentView */
  16.     id  hDraw;        /* hippo global controler object */
  17.     id    theInspector;    /* global NewInspector */
  18.     id    graphicView;    /* The HGraphicView holding plot */
  19.     id  selectedPlot;   /* The last selected Plot graphic or nil if multiple */
  20.     id  firstPlot;    /* The first selected Plot if multiple are selected */
  21. }
  22.  
  23. - initInspFor:aDraw;
  24.  /*
  25.   * Initializes inspector object  Each Inspector derived from
  26.   * this class should message its super class with this method 
  27.   * and after it has intialized itself, should add itself
  28.   * to the NewInspector's list of inspectors
  29.   */
  30.  
  31. - windowDidUpdate:sender;
  32.   /*
  33.    * Called each time an event occurs.  Updates the view if current
  34.    * selected graphic object is a plot for which one has not
  35.    * yet done an update.   Send message to method updateView to
  36.    * do the updating.
  37.    */
  38.  
  39. - load:aView;
  40.  /*
  41.   * Loads the current DrawDocument's View.
  42.   */
  43.   
  44. - firstPlot;
  45.  /*
  46.   * returns the first plot selected
  47.   */
  48.  
  49. - updateView;
  50.  /*
  51.   * Updates the Inspector's content View when a single Plot
  52.   * is selected.   An Inspector derived from
  53.   * this class should over-rid this method.
  54.   */
  55.  
  56. - updateEmptySelection;
  57.  /*
  58.   * Updates the Inspector's content View when there is no
  59.   * Plot selected.   An Inspector derived from
  60.   * this class should over-ride this method.
  61.   */
  62.  
  63. - updateMultiSelection;
  64.  /*
  65.   * Updates the Inspector's content View when there are multiple
  66.   * Plots selected.   An inspector derived from this class
  67.   * should over-rid this method.
  68.   */
  69. - setTuple:(ntuple) aTuple;
  70.  /* 
  71.   * Sets the selected n-tuple in case a derived Inspector needs it.
  72.   */
  73. @end
  74.